import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { TabbarComponent } from './tabbar.component';


const routes: Routes = [
  {
    path: '', component: TabbarComponent,
    children: [
      { path: '', redirectTo: 'store', pathMatch: 'full' },
      { path: 'store', loadChildren: () => import('./store/store.module').then(m => m.StoreModule) },
      { path: 'cart', loadChildren: () => import('./cart/cart.module').then(m => m.CartModule) },
      { path: 'center', loadChildren: () => import('./center/center.module').then(m => m.CenterModule) }
   ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class TabbarRoutingModule { }
